#9 - Build xberg PHP extension alongside kreuzberg in 8.5 image#10
Merged
deluxetom merged 2 commits intoJul 14, 2026
Merged
Conversation
3 tasks
nikola-jovanovic-php
marked this pull request as ready for review
July 13, 2026 17:42
deluxetom
requested changes
Jul 14, 2026
| @@ -104,6 +167,14 @@ COPY --from=kreuzberg-builder /tmp/kreuzberg/target/release/libkreuzberg_php.so | |||
Contributor
There was a problem hiding this comment.
lets just keep xberg and remove kreuzberg
Contributor
Author
There was a problem hiding this comment.
Removed in ddf68f4 — the kreuzberg-builder stage and the final-stage kreuzberg block are gone; the image now ships only xberg.so (still commented out in php.ini). Verified locally: xberg loads, no kreuzberg artifacts remain.
One note: any downstream image that had extension=kreuzberg enabled will break on its next pull of :8.5. It shipped commented out, so that should be nobody — flagging just in case.
deluxetom
approved these changes
Jul 14, 2026
deluxetom
deleted the
9-build-xberg-php-extension-alongside-kreuzberg-in-85-image
branch
July 14, 2026 12:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9
Changes (
8.5/Dockerfileonly)xberg-builderstage: buildscrates/xberg-phpfrom xberg-io/xberg at pinnedv1.0.0-rc.28(no stable tag exists yet — bumpXBERG_VERSIONwhen one lands), same shape and retry loop as the previous kreuzberg stage. xberg vendors Tesseract statically (nolibtesseract-devneeded), but itsheicfeature links system libheif ≥ 1.21, so the stage builds libheif 1.23.0 from source (trixie apt ships 1.19.8) — mirroring xberg's own CI.xberg.socommented out inconf.d/xberg.ini, copieslibheif.so.1to/usr/local/lib(onLD_LIBRARY_PATH), and adds the codec runtime packages (libde265-0 libaom3 libx265-215 libdav1d7 libnuma1) so the extension is loadable when consumers enable it.kreuzberg-builderstage and its extension block are deleted — the image ships only xberg. Note this also drops the brokenv4.9.8clone (the oldkreuzberg-dev/kreuzbergrepo was renamed toxberg-io/xberg, so uncached 8.5 builds were failing on master anyway).Verification (local arm64 build)
docker buildsucceeds.extension=xbergenabled →php -mlistsxberg;class_exists('Xberg\CacheStats')→true.ldd xberg.so: zero unresolved libs;libheif.so.1resolves to the bundled 1.23 copy.conf.d/kreuzberg.ini,kreuzberg.sogone).